﻿using Company.Database.Entities;

namespace Company.Database
{
    /// <summary>
    /// 数据库操作类的基接口
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    public interface IRepository<TEntity> where TEntity : EntityBase
    {
        bool Insert(TEntity entity);

        bool Update(TEntity entity);
        bool Delete(TEntity entity);
        List<TEntity> GetAll();

    }
}
